package com.bj.boot.service.impl;

import com.bj.boot.bean.City;
import com.bj.boot.mapper.CityMapper;
import com.bj.boot.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shkstart
 * @create 2021-09-20 15:42
 */
@Service
public class CityServiceImpl implements CityService {
    @Autowired
    CityMapper cityMapper;

    public City getById(Long id){
        return cityMapper.getById(id);
    }
    public Integer insertCity(City city){
        return cityMapper.insert(city);
    }
}
